package com.mdh.runerrands.dao;

import com.mdh.runerrands.pojo.BaseUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BaseUserDao {
    List<BaseUser> selectAll();
    int deleteById(int Id);
    int insert(BaseUser baseUser);
    BaseUser selectById(int id);
    int update(BaseUser baseUser);
    boolean batchDelete(int ...ids);
    List<BaseUser> selectQuery(int page,int pageSize,String telephone,String realname,String idCard,String status,String type);
    int selectCountWaiter(String telephone,String realname,String idCard,String status,String type);
    List<BaseUser> selectCustomerQuery(int page,int pageSize,String realName,String telephone,String status,String type);
    int selectCountCustomer(String realName,String telephone,String status,String type);
    boolean updateCustomerMoney(int id,String money);
    BaseUser selectByUserName(String username);
}
